﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/Admin.Master" AutoEventWireup="true"
    CodeBehind="RelatedAdvisoryList.aspx.cs" Inherits="Besture.UI.RelatedAdvisoryList" %>

<%@ Import Namespace="Besture.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="listPage"> 
        <cms:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server" Width="99%"
            AutoGenerateColumns="False" KeyFieldName="ID" OnCustomCallback="GridCustomCallback">
            <Columns>
                <cms:GridViewDataTextColumn Caption="操作" VisibleIndex="2" Width="80px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FixedStyle="Left">
                    <DataItemTemplate>
						<div class="operateBox">
                            <a class="btn-text-edit" href="RelatedAdvisorySet.aspx?id=<%# Eval("ID")%>" title="编辑"></a>
                        </div>
                    </DataItemTemplate>
                </cms:GridViewDataTextColumn> 
                <cms:GridViewDataTextColumn Caption="酒店" VisibleIndex="3" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center" FieldName="HotelsName">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
				<cms:GridViewDataTextColumn Caption="咨询用户" VisibleIndex="4" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center" FieldName="NickName">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
				<cms:GridViewDataTextColumn Caption="咨询内容" VisibleIndex="5" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center">
					<DataItemTemplate>
					   <span title="<%#Eval("Content") %>" ><%# StringHelper.StringTruncat(StringHelper.RemoveHTML(Convert.ToString(Eval("Content"))),50,"...")  %></span>
					 </DataItemTemplate>
				</cms:GridViewDataTextColumn>
				<cms:GridViewDataDateColumn Caption="咨询时间" VisibleIndex="6" Width="100" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center">
					      <DataItemTemplate>
				        <%#Convert.ToDateTime(Eval("CreateTime")).ToString("yyyy-MM-dd HH:mm:ss") %>
				    </DataItemTemplate>
				</cms:GridViewDataDateColumn>
                <cms:GridViewDataTextColumn Caption="回复人" VisibleIndex="6" Width="100" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center"  FieldName="ReplyAdminUser">
				</cms:GridViewDataTextColumn>
                <cms:GridViewDataTextColumn Caption="回复信息" VisibleIndex="7" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center">
					<DataItemTemplate>
                         <span title="<%#Eval("Reply") %>" ><%# StringHelper.StringTruncat(StringHelper.RemoveHTML(Convert.ToString(Eval("Reply"))),50,"...")  %></span>
					 </DataItemTemplate>
				</cms:GridViewDataTextColumn>
                <cms:GridViewDataDateColumn Caption="回复时间" VisibleIndex="8" Width="100" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center">
					      <DataItemTemplate>
				        <%#Convert.ToDateTime(Eval("ReplyTime")).ToString("yyyy-MM-dd HH:mm:ss") %>
				    </DataItemTemplate>
				</cms:GridViewDataDateColumn>
            </Columns>
        </cms:ASPxGridView>
    </div>
</asp:Content>
